package com.zh.elec.service.impl;

import java.util.List;

import com.zh.elec.dao.FactoryAddressDao;
import com.zh.elec.model.FactoryAddress;
import com.zh.elec.service.FactoryAddressService;

/**
 * 产地
 * @author scy
 *
 */
public class FactoryAddressServiceImpl implements FactoryAddressService {

	private FactoryAddressDao factoryAddressDao;
	@Override
	public Object save(FactoryAddress obj) {
		return factoryAddressDao.save(obj);
	}

	@Override
	public Object update(FactoryAddress obj) {
		return factoryAddressDao.update(obj);
	}

	@Override
	public Object getObjById(FactoryAddress obj) {
		return factoryAddressDao.getObjById(obj);
	}

	@Override
	public Object del(FactoryAddress obj) {
		return factoryAddressDao.del(obj);
	}

	@Override
	public List<FactoryAddress> find(String hql) {
		return factoryAddressDao.findHql(hql);
	}
	@Override
	public List<FactoryAddress> findAll(){
		return factoryAddressDao.findAll();
	}
	@Override
	public List<FactoryAddress> findByName(String name, Object value) {
		return factoryAddressDao.findByName(name, value);
	}

	public FactoryAddressDao getFactoryAddressDao() {
		return factoryAddressDao;
	}

	public void setFactoryAddressDao(FactoryAddressDao factoryAddressDao) {
		this.factoryAddressDao = factoryAddressDao;
	}
}
